package com.topc.problem.service.feign;

import com.topc.problem.model.vo.CompetitionCheckInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;

@FeignClient(name = "topc-others-api")
public interface CompetitionClient {

    @PostMapping("/others/open/competition/search-compose-id")
    Long getComposeIdById(@RequestParam("competitionId")@NotNull Long competitionId);

    @PostMapping("/others/open/competition/search-check-info")
    CompetitionCheckInfoVo getCompetitionCheckInfo(@RequestParam("competitionId")@NotNull Long competitionId,@RequestParam("userNumber") @NotNull String userNumber);

}
